Repository navigation
Let hosts send the visitor's reply email as HTML: 1.9.0 - #15
Merged
Merged
Conversation
A host whose customer email is branded had the chat reply as the one plain message among them, and had to patch the mailer to change it. Naming a mail layout in config.mailer_layout now gives the reply email an HTML part rendered inside it, next to the unchanged plain text. It stays opt-in, so no host's email changes on upgrade, and it covers only the visitor's email: the team's is an internal nudge and stays plain text. Message bodies are escaped and only the chat link is a link, so a URL typed into the chat does not become a link in mail sent under the host's name. The layout has to render without a request, as any Action Mailer layout does.
yshmarov
force-pushed
the
html-reply-email
branch
from
December 4, 2026 23:00
758f0ce to
d540367
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A host whose customer email is branded had the chat reply as the one plain message among them, and had to patch the mailer to change it.
config.mailer_layout = "mailer"now gives the visitor's reply email an HTML part rendered inside that host layout, next to the unchanged plain text.Also dates the 1.8.1 changelog section, which shipped still headed "Unreleased".